-
Notifications
You must be signed in to change notification settings - Fork 110
cmd/swarm/swarm-snapshot: Swarm snapshot binary #1077
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is not an exhaustive review. For example, I have not reviewed the tests, since I have several questions about the implementation, which may cause the premise of the tests to change.
@nolash the puritan approach of trying to scope the usage of components to be mainly from the right now i'm using the swarm simulations package just to wait for the network health (basically just creating an empty simulation and injecting the network object into it, then calling the health function). I think that this really isn't necessary to have this method with a simulation as a receiver, but rather a function that just takes a |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
in general i am very doubtful about this entire PR.
it is a lot of code for something that already existed plus stuff that is not needed.
lets discuss
@zelig, That being said, there's certain boilerplate code that is indeed replicated and unnecessary, and maybe we should think about having just one toolbox binary that includes, for example, smoke tests, snapshot generation, snapshot verification and any other need that might arise further down the road for that matter. |
…t connection event check, fixed lint error
No description provided.